<?php 
	$crnt = $mvc->getView();
	$new_mails = $mvc->getObject(MailService::NEW_MAILS);
?>
<div class="bodyBox" id="navMenu">
	<h2>_i18n{Navigation}</h2>
	<div class="viewMenu">
		<ul>
			<li <?php if($crnt == 'sidebar-myprofile') echo 'class="itemActive"';?>><a href="/my-profile.html" title="_i18n{My Profile}">_i18n{My Profile}</a></li>
			<li <?php if($crnt == 'sidebar-companyprofile') echo 'class="itemActive"';?>><a href="/company-profile.html" title="_i18n{My Company Profile}">_i18n{My Company Profile}</a></li>
			<li <?php if($crnt == 'sidebar-mymail' || $crnt == 'sidebar-newmail' || $crnt == 'sidebar-viewmail' || $crnt == 'sidebar-inbox' || $crnt == 'sidebar-outbox' || $crnt == 'sidebar-trash') echo 'class="itemActive"';?>><a href="/my-mail.html" title="_i18n{My Messages}">_i18n{My Messages} <?php echo $new_mails!=0 ? '('.$new_mails.')':null;?></a>
<?php if($crnt == 'sidebar-mymail' || $crnt == 'sidebar-newmail'  || $crnt == 'sidebar-viewmail' || $crnt == 'sidebar-inbox' || $crnt == 'sidebar-outbox' || $crnt == 'sidebar-trash') { ?>
				<ul>
					<li <?php if($crnt == 'sidebar-inbox') echo 'class="itemActive"';?>><a href="/inbox.html" title="_i18n{Inbox}">_i18n{Inbox}  <?php echo $new_mails!=0 ? '('.$new_mails.')':null;?></a></li>
					<li <?php if($crnt == 'sidebar-outbox') echo 'class="itemActive"';?>><a href="/outbox.html" title="_i18n{Outbox}">_i18n{Outbox}</a></li>
					<li <?php if($crnt == 'sidebar-trash') echo 'class="itemActive"';?>><a href="/trash.html" title="_i18n{Trash}">_i18n{Trash}</a></li>
				</ul>
<?php } ?>
			</li>
			<li <?php if($crnt == 'sidebar-myorder') echo 'class="itemActive"';?>><a href="/my-order.html" title="_i18n{My Order}">_i18n{My Order}</a></li>
			<li <?php if($crnt == 'sidebar-mybargains' || $crnt == 'sidebar-newbargain' || $crnt == 'sidebar-editbargain') echo 'class="itemActive"';?>><a href="/my-bargains.html" title="_i18n{My Bargains}">_i18n{My Bargains}</a></li>
			<li <?php if($crnt == 'sidebar-communication') echo 'class="itemActive"';?>><a href="/communication.html" title="_i18n{My Notification}">_i18n{My Notification}</a></li>
			<li <?php if($crnt == 'sidebar-myplan') echo 'class="itemActive"';?>><a href="/my-plan.html" title="_i18n{My Plan}">_i18n{My Plan}</a></li>
		</ul>
	</div>
</div>